<?php


namespace app\controller;


use app\model\work_type;

class workType
{
    private $model;                 // 服务
    public function __construct()
    {
        $this->model = new work_type();
    }
    public function getList()
    {
        $data=$this->model->select()->toArray();
        return json(['data'=>$data,'meta'=>['status'=>200]]);
}
}